//
//  SEExamineRecordVisionCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/15.
//

import UIKit

class SEExamineRecordVisionCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .white
        contentView.backgroundColor = .white
    }

    func updateWithViewModel(_ viewModel: SEExamineRecordData) {
        lyVisionLabel.text = viewModel.lysl
        djVisionLabel.text = viewModel.djsl
        zkVisionLabel.text = viewModel.zksl.memo
    }
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.layer.cornerRadius = 4
            containerView.layer.borderWidth = 1
            containerView.layer.borderColor = Asset.border.color.cgColor
            containerView.layer.masksToBounds = true
        }
    }
    
    @IBOutlet private weak var lyVisionLabel: UILabel!
    @IBOutlet private weak var djVisionLabel: UILabel!
    @IBOutlet private weak var zkVisionLabel: UILabel!

}
